package com.cmsky.open.cms.velocity.tool;

import com.cmsky.open.cms.model.CmsNodeInfo;
import com.cmsky.open.cms.model.PicHrefNode;
import com.cmsky.open.core.tool.VelocityTool;

public class CmsNodeInfoItemTool extends VelocityTool{

	@Override
	public void initSelf() {
	}
	/**
	 * 获取picHref子类
	 * @param node
	 * @return
	 */
	public static PicHrefNode parsePicHref(CmsNodeInfo node){
		if(node instanceof PicHrefNode){
			return (PicHrefNode)node;
		}else{
			return null;
		}
	}
}
